<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<ui:composition>
	<h:form>
		
		<c:if test="${empty crmcfListaBean.crmcfLista}">
			<rich:panel>
				<div align="center">
				<h:graphicImage value="/img/info.gif" /><h:outputLabel
					value="#{resourceApp.crmcf_sin_info}" />
				</div>
			</rich:panel>
		</c:if>
			
		<c:if test="${!empty crmcfListaBean.crmcfLista}">
			<rich:spacer height="15"></rich:spacer>
			<rich:spacer></rich:spacer>
			<rich:spacer></rich:spacer>
			<rich:panel>
				<f:facet name="header">
					<h:outputText value="#{resourceApp.crmcf_titulo_lista}"></h:outputText>
				</f:facet>
	
				<rich:spacer></rich:spacer>
				<rich:dataTable id="idTablaHistorico" onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
					onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
					cellpadding="0" cellspacing="0" border="0" value="#{crmcfListaBean.crmcfLista}" 
					var="mcf" rows="20">		
					<rich:column sortBy="#{mcf.mcfffh}" filterBy="#{resourceApp.crmcf_mcfffh}" filterEvent="onkeyup" width="90px">
						<f:facet name="header">
							<h:outputText value="#{resourceApp.crmcf_mcfffh}"></h:outputText>
						</f:facet>
						<h:outputText value="#{mcf.mcfffh_s}"></h:outputText>
					</rich:column>
					<rich:column sortBy="#{mcf.mcfvlr}" headerClass="encabezadoCol">
						<f:facet name="header">
							<h:outputText value="#{resourceApp.crmcf_mcfvlr}"></h:outputText>
						</f:facet>
						<h:outputText value="#{mcf.mcfvlr}">
							<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
						</h:outputText>
					</rich:column>
					<rich:column sortBy="#{mcf.mcfvaj}" headerClass="encabezadoCol">
						<f:facet name="header">
							<h:outputText value="#{resourceApp.crmcf_mcfvaj}"></h:outputText>
						</f:facet>
						<h:outputText value="#{mcf.mcfvaj}">
							<f:convertNumber currencySymbol="$" maxFractionDigits="2" type="currency"/>
						</h:outputText>
					</rich:column>
					<rich:column sortBy="#{mcf.des_mcftrn}" headerClass="encabezadoCol">
						<f:facet name="header">
							<h:outputText value="#{resourceApp.crmcf_descripcion}"></h:outputText>
						</f:facet>
						<h:outputText value="#{mcf.des_mcftrn}"></h:outputText>
					</rich:column>
				</rich:dataTable>
				<rich:spacer height="30" />
				<rich:datascroller align="center"  for="idTablaHistorico" maxPages="20" />
      	</rich:panel>
		</c:if>
	</h:form>
</ui:composition>
</html>
